//
//  TWSquareCardCollectionCell.swift
//  EyepetizerImitative
//
//  Created by 田伟 on 2017/3/30.
//  Copyright © 2017年 个人. All rights reserved.
//

import UIKit

class TWSquareCardCollectionCell: UITableViewCell {

    @IBOutlet weak var titleButton: UIButton!
    @IBOutlet weak var squareCardCollectionView: TWSquareCardCollectionView!
    
    // MARK:- 自定义属性
    var squareCardCollectionModel : TWSquareCardCollectionModel?{
        didSet {
            guard let squareCardCollectionModel = squareCardCollectionModel else {
                return
            }
            titleButton.setTitle(squareCardCollectionModel.header?.title, for: .normal)
            squareCardCollectionView.dataArray = squareCardCollectionModel.itemList_tw 
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
